Plants use light as a source of energy, and grow slowly in light that is too dim for their needs. If most of the available light is coming from one direction, the stems and leaves bend in that direction. Although foliage plants generally need less light than plants grown for their flowers or fruit, brightly colored plants like croton need fairly bright light in order to produce the pigments that color their leaves.
Move the plant gradually to a brighter location. A lightly curtained sunny window is ideal. If a brighter location is not available, provide supplemental lighting as described in Supplementary Lighting. Crotons may be grown outside in the summer. When moving them from indoors to outdoors, place the plants in light shade for at least 2 days before putting them in full sun. If you wish to grow a houseplant in a dim location, select a plant that is tolerant of dim light from the list in Houseplants That Tolerate Low Light.